﻿using WMS.FC.Domain.DomainObject.System;

namespace WMS.FC.Domain.PersistenceObject.History
{
    /// <summary>
    /// 操作履历
    /// </summary>
    [SplitTable(TableName = "HIS_OPERATION", TableDescription = "操作履历")]
    [SplitTableIndex("SEARCH", nameof(CreateDate), nameof(CreatedBy), nameof(TypeCode), false)]
    public class HisOperationPO : HistoryPOBase
    {
        /// <summary>
        /// 类型编码
        /// </summary>
        [SplitTableColumn(ColumnName = "TYPE_CODE", ColumnDataType = "VARCHAR2(50)", ColumnDescription = "类型编码")]
        public string TypeCode { get; set; } = string.Empty;

        /// <summary>
        /// 消息
        /// </summary>
        [SplitTableColumn(ColumnName = "MESSAGE", ColumnDataType = "VARCHAR2(2000)", ColumnDescription = "消息")]
        public string Message { get; set; } = string.Empty;
    }
}
